<?php
define ( 'ROOT_DIR', dirname ( __FILE__ ) );
define ( 'FRAMEWORK_DIR', dirname ( dirname ( __FILE__ ) ) . '/yii-1.1.13.e9e4a0/framework' );
define ( 'TIMESTAMP', $_SERVER ['REQUEST_TIME'] ? $_SERVER ['REQUEST_TIME'] : time () );
define ( 'WEB_URL', 'http://www.sitestar.com:8787' );
define ( 'DEFAULT_CONTROLLER', 'index' );
define ( 'DEFAULT_ACTION', 'index' );

// change the following paths if necessary
$yii = FRAMEWORK_DIR . '/yii.php';
$config = ROOT_DIR . '/protected/config/main.php';

if (0 || 1 == $_GET ['debug']) {
	error_reporting ( E_ALL ^ E_NOTICE );
	ini_set ( 'display_errors', true );
	// remove the following lines when in production mode
	defined ( 'YII_DEBUG' ) or define ( 'YII_DEBUG', true );
	// specify how many levels of call stack should be shown in each log message
	defined ( 'YII_TRACE_LEVEL' ) or define ( 'YII_TRACE_LEVEL', 3 );
	header ( 'debug', YII_DEBUG );
}

require_once ($yii);
$app = Yii::createWebApplication ( $config );

$app->run ();
